package cn.neusoft.yuejian307.service;

import java.util.List;

import cn.neusoft.yuejian307.bean.Choiceness;
import cn.neusoft.yuejian307.bean.Coach;
import cn.neusoft.yuejian307.bean.NewBean;
import cn.neusoft.yuejian307.bean.Train;
import cn.neusoft.yuejian307.bean.User;
import cn.neusoft.yuejian307.bean.Video;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface YuejianService {
    @GET("Login/login/")    //登录
    Call<User> userLogin(
            @Query("user_telphone") String user_telphone,
            @Query("user_password") String user_password
    );

    @GET("Register/register/") //注册
    Call<User>register(
            @Query("user_telphone") String user_telphone,
            @Query("user_name") String user_name,
            @Query("user_password") String user_password
    );

    @GET("Activity/activitylist/") //活动列表
    Call<Choiceness>activitylist(
    );


    @GET("Activity/activityApply") //活动报名
    Call<User>activityApply(
            @Query("user_id") int user_id,
            @Query("activity_id") int activity_id,
            @Query("activity_name") String  activity_name,
            @Query("activity_type") String  activity_type,
            @Query("activity_price") String  activity_price,
            @Query("user_phone") String  user_phone,
            @Query("user_name") String  user_name,
            @Query("paynum") String  paynum
    );

    @GET("Club/clubCoach/") //俱乐部之课程
    Call<Coach>coachlist(
            @Query("club_id") int club_id
    );

    @GET("Club/clubVideo/") //俱乐部视频
    Call<Video>clubVideo(
            @Query("club_id") int club_id
    );

    @GET("Train/trainlist/") //培训列表
    Call<List<Train>>trainlist(
            @Query("flag") int flag
    );

    @GET("Activity/trainApply") //培训报名
    Call<User>trainApply(
            @Query("userid") int userid,
            @Query("trainid") int trainid,
            @Query("name") String  name,
            @Query("price") String  price,
            @Query("phone") String  phone
    );

    @GET("Train/newslist/") //培训之消息列表
    Call<List<NewBean>>newslist(
            @Query("club_id") int club_id
    );

    @GET("Train/addnew/") //培训之发送消息
    Call<User>addnews(
            @Query("club_id") int club_id,
            @Query("send_id") int send_id,
            @Query("content") String content
    );

}